import router from './'
import store from '@/store'
import {initData} from '../utils/loginInitData'

//路由拦截
router.beforeEach( (to, from, next) => {

    store.dispatch('setPageTitle', to.meta.title)
    store.dispatch('setIsBack', to.meta.isBack)
    initData(()=>{
        next()
    })
  
   
})